<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #header{
            height: 100px;
            width: 100%;
            background-color: black;
            font-size: 35px;
            color: white;
        }
        #nav{
            width: 200px;
            height: 400px;
            float: left;
            background-color: #cdcdcd;
            /* overflow: hidden; */
        }
        #section{
            height: 400px;
            float: left;
            /* overflow: hidden; */
        }
         #footer{
            height: 50px;
            width: 100%;
            background-color: black;
            font-size: 35px;
            color: white;
            clear: both;
            text-align: center;
            /* overflow: hidden; */
            /* 清除浮动以后带来页面布局影响 */
        } 
    
    </style>
</head>
<body>

    <div id="header">
    <h1 align="center">City Gallery</h1>
    </div>
    
    <div id="nav">
    London<br>
    Paris<br>
    Tokyo<br>
    </div>
    
    <div id="section">
    <h2>London</h2>
    <p>
    London is the capital city of England. It is the most populous city in the United Kingdom,
    with a metropolitan area of over 13 million inhabitants.
    </p>
    <p>
    Standing on the River Thames, London has been a major settlement for two millennia,
    its history going back to its founding by the Romans, who named it Londinium.
    </p>
    </div>
    
    <div id="footer">
    Copyright ? W3Schools.com
    </div>
    
    </body>
</html>